
// dlllib for c, m, share.

#pragma comment(linker, "/export:getcpu=wmi64.GetCpuUsage")
#pragma comment(linker, "/export:getmem=wmi64.GetMemoryUsage")

#define _DPHAPI __declspec(dllexport)
#pragma data_seg("Status")
int _dpst = 0;
int _dpuist = 0; // 1: ok 2: bad
int _dpicst = 0; // ts.
#pragma data_seg()
#pragma comment(linker, "/section:Status,rws")
_DPHAPI void setState(int a)
{
    _dpst = a;
}

_DPHAPI int  getStatr()
{
    return _dpst;
}

_DPHAPI void setUIStat(int a)
{
    _dpuist = a;
}

_DPHAPI int getUIStat()
{
    return _dpuist;
}

_DPHAPI void setIconStat(int a)
{
    _dpicst = a;
}

_DPHAPI int getIconStat(int a)
{
    return _dpicst;
}

_DPHAPI void   initdpdl()
{
    _dpst = 1;
}
